<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/meeting/room/save}">
        <input type="hidden" name="id" th:if="${room}" th:value="${room?.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">分组信息</label>
            <div class="layui-input-inline">
                <div th:replace="/common/fragment :: selectTag('groupId',${groups},${room?.groupId},'id','title','')"></div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">会议室名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="title" placeholder="请输入会议室名称" th:value="${room?.title}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">位置</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="position" placeholder="请输入位置" th:value="${room?.position}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">容纳人数</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="volume" placeholder="请输入容纳人数" th:value="${room?.volume}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">提供的设备</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="devices" placeholder="请输入提供的设备" th:value="${room?.devices}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否有窗户</label>
            <div class="layui-input-inline">
                <input type="checkbox" name="window" value="1" lay-skin="switch" lay-text="有|无" th:checked="${room?.window == '1'}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">其它</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="other" placeholder="请输入其它" th:value="${room?.other}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>